# -*- coding: utf-8 -*-
# @File     : validators.py
# @Author   : bingjia
# @Time     : 2020/8/11 10:31
# @Desc     :

from operation.base.api import serializers


class UavValidator(serializers.Serializer):
    """
    无人机验证
    """
    image = serializers.FileField()
    name = serializers.CharField(max_length=255)
    company = serializers.CharField(max_length=128)
    fly_time = serializers.CharField(max_length=32)
    wind_loading = serializers.CharField(max_length=64)


class CameraValidator(serializers.Serializer):
    """
    相机验证
    """
    image = serializers.FileField()
    name = serializers.CharField(max_length=255)
    company = serializers.CharField(max_length=128)
    visible_pixel = serializers.CharField(max_length=32)
    infrared_pixel = serializers.CharField(max_length=32)

